package com.gzbsoft.sc.modules.sys.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.DocEmbedded;
import io.ebean.annotation.DocStore;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@DocStore
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@Entity
@Table(name = "jx_good_standard")
@DbComment("商品技术参数基本表")
public class JxGoodStandard extends BaseEntity {
    @DocEmbedded(doc = "id")
    @JsonIgnore
    @OneToOne
    @JoinColumn(name = "jx_good_sort_id")
    private JxGoodSort goodSort;
    @DbComment("名称")
    private String name;
    @DbComment("单位")
    private String unit;
    @DbComment("值")
    private String valueRange;
    @DbComment("是否必须")
    private Boolean required;
    @DbComment("是否可搜索")
    private Boolean searchable;
}
